package com.example.demo.testOne;

import cn.hutool.http.HttpUtil;
import com.alibaba.fastjson.JSON;
import com.example.demo.pojo.dto.SizeDTO;

/**
 * @description hutool请求
 *
 *
 * @author lilinchun
 * @date 2023/12/05
 */
public class demo16 {


    public static void main(String[] args) {
        String result1= HttpUtil.get("https://ebc-prod.cdn.benwunet.com/4f2209ea-05ef-45ed-b467-5a7d07e5eece.jpg?x-image-process=image/resize,p_70,x-image-process=image/info");
       SizeDTO sizeDTO= JSON.parseObject(result1,SizeDTO.class);
       sizeDTO.setEye("12");
        System.out.println(sizeDTO.getEye()+"---"+sizeDTO.getHeight()+"---------"+sizeDTO.getWidth());
    }


}
